using System;
using System.Windows;
namespace Microsoft.Phone.Controls
{
	public class PinchGestureEventArgs : MultiTouchGestureEventArgs
	{
		public double DistanceRatio
		{
			get
			{
				double num = Math.Max(MathHelpers.GetDistance(base.GestureOrigin, base.GestureOrigin2), 1.0);
				double num2 = Math.Max(MathHelpers.GetDistance(base.TouchPosition, base.TouchPosition2), 1.0);
				return num2 / num;
			}
		}
		public double TotalAngleDelta
		{
			get
			{
				double angle = MathHelpers.GetAngle(base.GestureOrigin2.get_X() - base.GestureOrigin.get_X(), base.GestureOrigin2.get_Y() - base.GestureOrigin.get_Y());
				double angle2 = MathHelpers.GetAngle(base.TouchPosition2.get_X() - base.TouchPosition.get_X(), base.TouchPosition2.get_Y() - base.TouchPosition.get_Y());
				return angle2 - angle;
			}
		}
		internal PinchGestureEventArgs(Point gestureOrigin, Point gestureOrigin2, Point position, Point position2) : base(gestureOrigin, gestureOrigin2, position, position2)
		{
		}
	}
}
